package com.googlecode.eventio.internal.utils;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

import com.googlecode.eventio.Loadable;

public class StringInputResource implements Loadable<String, String> {

	private final BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));

	@Override
	public String load(String input) {
		System.out.println("enter value for " + input);
		try {
			return reader.readLine();
		} catch (IOException e) {
			throw new IllegalStateException(e);
		}
	}

}
